package top.codedance.iotp.common.entity;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

import java.util.Map;

public class PluginResultEntity extends JSONObject {
    @Override
    public Object put(String key, Object value) {
        return null;
    }

    @Override
    public void putAll(Map<? extends String, ?> m) {}

    public void setOk(boolean ok){
        super.put("ok", ok);
    }

    public void setContext(Number context){
        super.put("context", context);
    }

    public void setContext(String context){
        super.put("context", context);
    }

    public void setContext(JSON context){
        super.put("context", context);
    }

    public void setMsg(String msg){
        super.put("msg", msg);
    }

    public void setHex(String hex){
        super.put("hex", hex);
    }
}
